using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;


namespace RaceGame2013
{

    public class BMW : Voertuig,IVoertuig
    {


        // Overloaded Constructor
        public BMW(ContentManager content, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, Track track, Vector2 pos, int play)
        {
            // Set standart health
            health = 100;
            wapen = new Pistool();
            damage = 0.5f;
            carSpeed = 3f;

            // set current rotation
            rotation = 180;

            this.player = play;
            
            // Set the position of the car in the field
            Position = pos;

            // GraphicsDeviceManager
            this.graphics = graphics;

            // Reference to the track
            this.track = track;

            // Refence to spriteBatch
            this.spriteBatch = spriteBatch;

            // Reference to the Main ContentManager
            this.Content = content;
        }


        // Override deze methode om niewe plaatje voor deze type auto te plaatsen
        public override void LoadContent()
        {
            // Load the car
            voerTuigtexture = Content.Load<Texture2D>("Cars/CarBMW");
            // Later for the health bar
            //healthbartexture = Content.Load<Texture2D>(@"images/HealthBar");

            // Scale the height of the car appropriately
            width = (int)(voerTuigtexture.Width * scale);
            height = (int)(voerTuigtexture.Height * scale);

            // Set collision box
            voertuigCollisionBox = new Rectangle((int)this.Position.X, (int)this.Position.Y, width, height);

        }



    }

}

